package com.degon.hsyl.vagueheadpicdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.media.Image;
import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ImageView mImage = findViewById(R.id.mImage);
        ImageView civHead = findViewById(R.id.civ_head);

        Glide.with(MainActivity.this)
                .load(R.drawable.head)
                .transform(new BlurTransformation(MainActivity.this, 20, 2))
                .into(mImage);

        Glide.with(MainActivity.this)
                .load(R.drawable.head)
                .into(civHead);

    }
}